import { getAction, deleteAction, putAction, postAction, httpAction, postFormAction, postFormData } from '@/api/manage'
import Vue from 'vue'
import { UI_CACHE_DB_DICT_DATA } from '@/store/mutation-types'

//角色管理
const addRole = (params) => postAction('/sys/role/add', params)
const editRole = (params) => putAction('/sys/role/edit', params)
const checkRoleCode = (params) => getAction('/sys/role/checkRoleCode', params)
const queryall = (params) => getAction('/sys/role/queryall', params)

//用户管理
const addUser = (params) => postAction('/sys/user/add', params)
const editUser = (params) => putAction('/sys/user/edit', params)
const queryUserRole = (params) => getAction('/sys/user/queryUserRole', params)
const getUserList = (params) => getAction('/sys/user/list', params)
const frozenBatch = (params) => putAction('/sys/user/frozenBatch', params)
//验证用户是否存在
const checkOnlyUser = (params) => getAction('/sys/user/checkOnlyUser', params)
//改变密码
const changePassword = (params) => putAction('/sys/user/changePassword', params)

//权限管理
const addPermission = (params) => postAction('/sys/permission/add', params)
const editPermission = (params) => putAction('/sys/permission/edit', params)
const getPermissionList = (params) => getAction('/sys/permission/list', params)
const getSystemMenuList = (params) => getAction('/sys/permission/getSystemMenuList', params)
const getSystemSubmenu = (params) => getAction('/sys/permission/getSystemSubmenu', params)
const getSystemSubmenuBatch = (params) => getAction('/sys/permission/getSystemSubmenuBatch', params)
const queryTreeList = (params) => getAction('/sys/permission/queryTreeList', params)
const queryTreeListForRole = (params) => getAction('/sys/role/queryTreeList', params)
const queryListAsync = (params) => getAction('/sys/permission/queryListAsync', params)
const queryRolePermission = (params) => getAction('/sys/permission/queryRolePermission', params)
const saveRolePermission = (params) => postAction('/sys/permission/saveRolePermission', params)
const queryPermissionsByUser = () => getAction('/sys/permission/getUserPermissionByToken')
const loadAllRoleIds = (params) => getAction('/sys/permission/loadAllRoleIds', params)
const getPermissionRuleList = (params) => getAction('/sys/permission/getPermRuleListByPermId', params)
const queryPermissionRule = (params) => getAction('/sys/permission/queryPermissionRule', params)

// 部门管理
const queryDepartTreeList = (params) => getAction('/sys/sysDepart/queryTreeList', params)
const queryIdTree = (params) => getAction('/sys/sysDepart/queryIdTree', params)
const queryParentName = (params) => getAction('/sys/sysDepart/queryParentName', params)
const searchByKeywords = (params) => getAction('/sys/sysDepart/searchBy', params)
const deleteByDepartId = (params) => deleteAction('/sys/sysDepart/delete', params)

//二级部门管理
const queryDepartPermission = (params) => getAction('/sys/permission/queryDepartPermission', params)
const saveDepartPermission = (params) => postAction('/sys/permission/saveDepartPermission', params)
const queryTreeListForDeptRole = (params) => getAction('/sys/sysDepartPermission/queryTreeListForDeptRole', params)
const queryDeptRolePermission = (params) => getAction('/sys/sysDepartPermission/queryDeptRolePermission', params)
const saveDeptRolePermission = (params) => postAction('/sys/sysDepartPermission/saveDeptRolePermission', params)
const queryMyDepartTreeList = (params) => getAction('/sys/sysDepart/queryMyDeptTreeList', params)

//日志管理
//const getLogList = (params)=>getAction("/sys/log/list",params);
const deleteLog = (params) => deleteAction('/sys/log/delete', params)
const deleteLogList = (params) => deleteAction('/sys/log/deleteBatch', params)

//数据字典
const addDict = (params) => postAction('/sys/dict/add', params)
const editDict = (params) => putAction('/sys/dict/edit', params)
const treeList = (params) => getAction('/sys/dict/treeList', params)
const addDictItem = (params) => postAction('/sys/dictItem/add', params)
const editDictItem = (params) => putAction('/sys/dictItem/edit', params)

//字典标签专用（通过code获取字典数组）
export const ajaxGetDictItems = (code, params) => getAction(`/sys/dict/getDictItems/${code}`, params)
//从缓存中获取字典配置
function getDictItemsFromCache(dictCode) {
    if (Vue.ls.get(UI_CACHE_DB_DICT_DATA) && Vue.ls.get(UI_CACHE_DB_DICT_DATA)[dictCode]) {
        let dictItems = Vue.ls.get(UI_CACHE_DB_DICT_DATA)[dictCode]
        console.log('-----------getDictItemsFromCache----------dictCode=' + dictCode + '---- dictItems=', dictItems)
        return dictItems
    }
}

//系统通告
const doReleaseData = (params) => getAction('/sys/annountCement/doReleaseData', params)
const doReovkeData = (params) => getAction('/sys/annountCement/doReovkeData', params)
//获取系统访问量
const getLoginfo = (params) => getAction('/sys/loginfo', params)
const getVisitInfo = (params) => getAction('/sys/visitInfo', params)

// 根据部门主键查询用户信息
const queryUserByDepId = (params) => getAction('/sys/user/queryUserByDepId', params)

// 重复校验
const duplicateCheck = (params) => getAction('/sys/duplicate/check', params)
// 加载分类字典
const loadCategoryData = (params) => getAction('/sys/category/loadAllData', params)
const checkRuleByCode = (params) => getAction('/sys/checkRule/checkByCode', params)
//加载我的通告信息
const getUserNoticeInfo = (params) => getAction('/sys/sysAnnouncementSend/getMyAnnouncementSend', params)
const getTransitURL = (url) => `/sys/common/transitRESTful?url=${encodeURIComponent(url)}`

const getChartDatatjdw = (params) => getAction('/cxj/cxjTjTjyj/getChartData', params)
const getChartDatagly = (params) => getAction('/cxj/cxjTjTjyj/getChartData_gly', params)

// 创新奖推荐-保存和修改推荐单位信息
const cxjtjAddTjdwxx = (params) => getAction('/cxj/cxjTjTjdwxx/cxjtj_addTjdwxx', params)
// 创新奖推荐-通过成果id获取推荐单位信息
const cxjtjGetTjdwxxBycgid = (params) => getAction('/cxj/cxjTjTjdwxx/cxjtj_getTjdwxxBycgid', params)
// 创新奖推荐-获取推荐单位信息
const cxjtjGetTjdwxx = (params) => getAction('/cxj/cxjTjTjdwxx/cxjtj_getTjdwxx', params)
// 创新奖申报-推荐单位列表
const cxjsbTjdwlist = (params) => getAction('/cxj/sysCxjJttjdw/cxjsb_tjdwlist', params)
// 创新奖申报-根据推荐单位类别获取推荐单位列表
const cxjsbTjdwlistBylb = (params) => getAction('/cxj/sysCxjJttjdw/cxjsb_tjdwlistBylb', params)
// 创新奖申报-所属集团列表
const cxjsbSsjtlist = (params) => getAction('/cxj/sysCxjJttjdw/cxjsb_ssjtlist', params)
// 创新奖申报-推荐单位类型列表
const cxjsbTjdwlbList = (params) => getAction('/cxj/sysCxjJttjdw/cxjsb_tjdwlbList', params)
// 创新奖管理-推荐单位类型列表全部
const cxjsbTjdwlbListAll = (params) => getAction('/cxj/sysCxjJttjdw/cxjsb_tjdwlbListall', params)
// 创新奖管理-推荐表文件下载
const cxjTjbDownload = (params) => getAction('/cxj/cxjTjTjyj/cxjgl_cxjTjbDownload_gly', params)
// 创新奖管理-推荐表全部文件下载
const cxjTjbDownloadAll = (params) => getAction('/cxj/cxjTjTjyj/cxjgl_cxjTjbDownloadAll_gly', params)
// 创新奖管理-推荐表列表
const cxjTjbListGly = (params) => getAction('/cxj/cxjTjTjyj/cxjgl_cxjTjbList_gly', params)
// 创新奖申报-成果来源列表
const sysCxjFlCxjsbList = (params) => getAction('/cxj/sysCxjFl/cxjsb_list', params)
// 创新奖申报-成果小类
const cxjsbLoadTreeRoot = (params) => getAction('/sys/category/cxjsb_loadTreeRoot', params)

// 形审分组项目表-已选成果列表
const cxjxsFzxmlistYx = (params) => getAction('/cxj/cxjXsscFzXm/cxjxs_fzxmlist_yx', params)
// 形审分组项目表-添加
const cxjxsFzxmadd = (params) => postAction('/cxj/cxjXsscFzXm/cxjxs_fzxmadd', params)
// 形审分组项目表-通过id删除
const cxjxsFzxmdelete = (params) => deleteAction('/cxj/cxjXsscFzXm/cxjxs_fzxmdelete', params)
// 形审分组项目表-批量删除
const cxjxsFzxmdeleteBatch = (params) => deleteAction('/cxj/cxjXsscFzXm/cxjxs_fzxmdeleteBatch', params)
// 形审分组专家-待选专家列表
const cxjxsFzzjlistDx = (params) => getAction('/cxj/cxjXsscFzZj/cxjxs_fzzjlist_dx', params)
// 形审分组专家-已选专家列表
const cxjxsFzzjlistYx = (params) => getAction('/cxj/cxjXsscFzZj/cxjxs_fzzjlist_yx', params)
// 形审分组专家-批量删除
const cxjxsFzzjdeleteBatch = (params) => deleteAction('/cxj/cxjXsscFzZj/cxjxs_fzzjdeleteBatch', params)
// 形审分组专家-通过id删除
const cxjxsFzzjdelete = (params) => deleteAction('/cxj/cxjXsscFzZj/cxjxs_fzzjdelete', params)
// 形审分组专家-添加
const cxjxsFzzjadd = (params) => postAction('/cxj/cxjXsscFzZj/cxjxs_fzzjadd', params)
// 创新奖管理-推荐表文件
const cxjglCxjTjbDownload = (params) => getAction('/cxj/cxjTjTjyj/cxjgl_cxjTjbDownload', params)

// 初审分组项目表-批量删除
const cxjcsFzxmdeleteBatch = (params) => deleteAction('/cxj/cxjJscsFzXm/cxjcs_fzxmdeleteBatch', params)
// 初审分组项目表-添加
const cxjcsFzxmadd = (params) => postAction('/cxj/cxjJscsFzXm/cxjcs_fzxmadd', params)

// 初审分组专家表-添加
const cxjcsFzzjadd = (params) => postAction('/cxj/cxjJscsFzZj/cxjcs_fzzjadd', params)
// 初审分组专家表-待选专家列表
const cxjcsFzzjlistDx = (params) => getAction('/cxj/cxjJscsFzZj/cxjcs_fzzjlist_dx', params)
// 初审分组专家表-已选专家列表
const cxjcsFzzjlistYx = (params) => getAction('/cxj/cxjJscsFzZj/cxjcs_fzzjlist_yx', params)
// 初审分组专家表-批量删除
const cxjcsFzzjdeleteBatch = (params) => deleteAction('/cxj/cxjJscsFzZj/cxjcs_fzzjdeleteBatch', params)

/* 技术类开始 */
// 初审项目评分表-技术类-获取分组项目
const cxjcsGetFzxmListByFzid = (params) => postAction('/cxj/cxjJscsPfJs/cxjcs_getFzxmListByFzid', params)
// 初审项目评分表-技术类-评分保存或修改
const cxjcsSavePfJs = (params) => postAction('/cxj/cxjJscsPfJs/cxjcs_savePf_js', params)
// 初审项目评分表-技术类-查询二维码状态接口
const cxjcsCheckQrcode = (params) => getAction('/cxj/cxjJscsPfJs/cxjcs_submit_status', params)
// 初审项目评分表-技术类-查询二维码
const cxjcsSubmitQrcode = (params) => postAction('/cxj/cxjJscsPfJs/cxjcs_getQR_code', params)
// 初审项目评分表-技术类-二维码提交
const cxjcsPostQrcode = (params, path) => postFormAction(`/cxj/${path}/submit_by_QR_code`, params, 'application/json; charset=UTF-8')
// 初审项目评分表-技术类-评分提交
const cxjcsSubmitPfJs = (params) => postAction('/cxj/cxjJscsPfJs/cxjcs_submitPfJs', params)
// 初审项目评分表-技术类-评分预览
const cxjcsScoreExport = (params, path) => postFormData(`/cxj/${path}/scoreExport`, params)
// 技术初审评分表-评分统计-专家
const jscsPfTjZj = (params) => postAction('/cxj/cxjJscsPfJs/jscsPfTjZj', params)
/* 技术类结束 */

/* 职工类开始 */
// 初审项目评分表-职工类-获取分组项目
const cxjcsGetFzxmListByFzidZg = (params) => postAction('/cxj/cxjJscsPfZg/cxjcs_getFzxmListByFzid', params)
// 初审项目评分表-职工类-评分保存或修改
const cxjcsSavePfZg = (params) => postAction('/cxj/cxjJscsPfZg/cxjcs_savePf_js', params)
// 初审项目评分表-职工类-查询二维码状态接口
const cxjcsCheckQrcodeZg = (params) => getAction('/cxj/cxjJscsPfZg/cxjcs_submit_status', params)
// 初审项目评分表-职工类-查询二维码
const cxjcsSubmitQrcodeZg = (params) => postAction('/cxj/cxjJscsPfZg/cxjcs_getQR_code', params)
// 初审项目评分表-职工类-评分提交
const cxjcsSubmitPfZg = (params) => postAction('/cxj/cxjJscsPfZg/cxjcs_submitPfJs', params)
// 职工初审评分表-评分统计-专家
const zgcsPfTjZj = (params) => postAction('/cxj/cxjJscsPfZg/jscsPfTjZj', params)
/* 职工类结束 */

/* 管理类开始 */
// 初审项目评分表-管理类-获取分组项目
const cxjcsGetFzxmListByFzidGl = (params) => postAction('/cxj/cxjJscsPfGl/cxjcs_getFzxmListByFzid', params)
// 初审项目评分表-管理类-评分保存或修改
const cxjcsSavePfGl = (params) => postAction('/cxj/cxjJscsPfGl/cxjcs_savePf_gl', params)
// 初审项目评分表-管理类-评分提交
const cxjcsSubmitPfGl = (params) => postAction('/cxj/cxjJscsPfGl/cxjcs_submitPfGl', params)
// 技术初审评分表-评分统计-专家
const jscsPfTjZjGl = (params) => postAction('/cxj/cxjJscsPfGl/jscsPfTjZj', params)
// 初审项目评分表-管理类-查询二维码状态接口
const cxjcGlCheckQrcode = (params) => getAction('/cxj/cxjJscsPfGl/cxjcs_submit_status', params)
// 初审项目评分表-管理类-查询二维码
const cxjcGlSubmitQrcode = (params) => postAction('/cxj/cxjJscsPfGl/cxjcs_getQR_code', params)
// 初审项目评分表-管理类-二维码提交
// const cxjcGlPostQrcode = (params) => postFormAction('/cxj/cxjJscsPfGl/cxjcs_submit_by_QR_code', params, 'application/json; charset=UTF-8')
/* 管理类结束 */

/* 标准类开始 */
// 初审项目评分表-标准类-获取分组项目
const cxjcsGetFzxmListByFzidBz = (params) => postAction('/cxj/cxjJscsPfBz/cxjcs_getFzxmListByFzid', params)
// 初审项目评分表-标准类-评分保存或修改
const cxjcsSavePfBz = (params) => postAction('/cxj/cxjJscsPfBz/cxjcs_savePf_bz', params)
// 初审项目评分表-标准类-评分提交
const cxjcsSubmitPfBz = (params) => postAction('/cxj/cxjJscsPfBz/cxjcs_submitPfBz', params)
// 技术初审评分表-评分统计-专家
const jscsPfTjZjBz = (params) => postAction('/cxj/cxjJscsPfBz/jscsPfTjZj', params)
// 初审项目评分表-标准类-查询二维码状态接口
const cxjcBzCheckQrcode = (params) => getAction('/cxj/cxjJscsPfBz/cxjcs_submit_status', params)
// 初审项目评分表-标准类-查询二维码
const cxjcBzSubmitQrcode = (params) => postAction('/cxj/cxjJscsPfBz/cxjcs_getQR_code', params)
// 初审项目评分表-标准类-二维码提交
// const cxjcBzPostQrcode = (params) => postFormAction('/cxj/cxjJscsPfBz/cxjcs_submit_by_QR_code', params, 'application/json; charset=UTF-8')
/* 标准类结束 */

/* 信息化类开始 */
// 初审项目评分表-信息化类-获取分组项目
const cxjcsGetFzxmListByFzidXxh = (params) => postAction('/cxj/cxjJscsPfXxh/cxjcs_getFzxmListByFzid', params)
// 初审项目评分表-信息化类-评分保存或修改
const cxjcsSavePfXxh = (params) => postAction('/cxj/cxjJscsPfXxh/cxjcs_savePf_xxh', params)
// 初审项目评分表-信息化类-评分提交
const cxjcsSubmitPXxh = (params) => postAction('/cxj/cxjJscsPfXxh/cxjcs_submitPXxh', params)
// 技术初审评分表-评分统计-专家
const jscsPfTjZjXxh = (params) => postAction('/cxj/cxjJscsPfXxh/jscsPfTjZj', params)
// 初审项目评分表-信息化-查询二维码状态接口
const cxjcXxhCheckQrcode = (params) => getAction('/cxj/cxjJscsPfXxh/cxjcs_submit_status', params)
// 初审项目评分表-信息化-查询二维码
const cxjcXxhSubmitQrcode = (params) => postAction('/cxj/cxjJscsPfXxh/cxjcs_getQR_code', params)
// 初审项目评分表-信息化-二维码提交
// const cxjcXxhPostQrcode = (params) => postFormAction('/cxj/cxjJscsPfXxh/cxjcs_submit_by_QR_code', params, 'application/json; charset=UTF-8')
/* 信息化类结束 */

/* 专利类开始 */
// 初审项目评分表-专利类-获取分组项目
const cxjcsGetFzxmListByFzidZl = (params) => postAction('/cxj/cxjJscsPfZl/cxjcs_getFzxmListByFzid', params)
// 初审项目评分表-专利类-评分保存或修改
const cxjcsSavePfZl = (params) => postAction('/cxj/cxjJscsPfZl/cxjcs_savePf_zl', params)
// 初审项目评分表-专利类-评分提交
const cxjcsSubmitPZl = (params) => postAction('/cxj/cxjJscsPfZl/cxjcs_submitPfZl', params)
// 技术初审评分表-评分统计-专家
const jscsPfTjZjZl = (params) => postAction('/cxj/cxjJscsPfZl/jscsPfTjZj', params)
/* 专利类结束 */
// 初审分组专家表-获取分组列表【技术、管理、专利、标准、信息化】
const cxjCsGetZjFz = (params) => getAction('/cxj/cxjJscsFzZj/cxjCsGetZjFz', params)
// 初审项目评分表-专利类-查询二维码状态接口
const cxjcZlCheckQrcode = (params) => getAction('/cxj/cxjJscsPfZl/cxjcs_submit_status', params)
// 初审项目评分表-专利类-查询二维码
const cxjcZlSubmitQrcode = (params) => postAction('/cxj/cxjJscsPfZl/cxjcs_getQR_code', params)
// 初审项目评分表-专利类-二维码提交
// const cxjcZlPostQrcode = (params) => postFormAction('/cxj/cxjJscsPfZl/cxjcs_submit_by_QR_code', params, 'application/json; charset=UTF-8')


// 初审项目评分表-技术类-评分列表
const jscsPfListJs = (params) => getAction('/cxj/cxjJscsPfJs/jscsPfList', params)
// 初审项目评分表-技术类-编辑
const cxjJscsPfJsEdit = (params) => putAction('/cxj/cxjJscsPfJs/edit', params)
// 初审项目评分表-职工类-评分列表
const jscsPfListZg = (params) => getAction('/cxj/cxjJscsPfZg/jscsPfList', params)
// 初审项目评分表-职工类-编辑
const cxjJscsPfZgEdit = (params) => putAction('/cxj/cxjJscsPfZg/edit', params)

// 初审项目评分表-管理类-评分列表
const jscsPfListGl = (params) => getAction('/cxj/cxjJscsPfGl/jscsPfList', params)
// 初审项目评分表-管理类-编辑
const cxjJscsPfGlEdit = (params) => putAction('/cxj/cxjJscsPfGl/edit', params)

// 初审项目评分表-标准类-评分列表
const jscsPfListBz = (params) => getAction('/cxj/cxjJscsPfBz/jscsPfList', params)
// 初审项目评分表-标准类-编辑
const cxjJscsPfBzEdit = (params) => putAction('/cxj/cxjJscsPfBz/edit', params)

// 初审项目评分表-信息化类-评分列表
const jscsPfListXxh = (params) => getAction('/cxj/cxjJscsPfXxh/jscsPfList', params)
// 初审项目评分表-信息化类-编辑
const cxjJscsPfXxhEdit = (params) => putAction('/cxj/cxjJscsPfXxh/edit', params)

// 初审项目评分表-专利类-评分列表
const jscsPfListZl = (params) => getAction('/cxj/cxjJscsPfZl/jscsPfList', params)
// 初审项目评分表-专利类-编辑
const cxjJscsPfZlEdit = (params) => putAction('/cxj/cxjJscsPfZl/edit', params)


const cxjXsGetZjFz = (params) => getAction('/cxj/cxjXsscFzZj/cxjXsGetZjFz', params)
const queryByFlId = (params) => getAction('/cxj/sysCxjXswt/queryByFlId', params)
const cxjXsGetXm = (params) => getAction('/cxj/cxjXsscFzXm/cxjXsGetXm', params)
const list_jlb = (params) => postAction('/cxj/cxjXssc/list_jlb', params)
const list_jlb_js = (params) => postAction('/cxj/cxjXssc/list_jlb_js', params)


// 复审分组专家表-批量删除
const cxjfsFzzjdeleteBatch = (params) => deleteAction('/cxj/cxjFsFzZj/cxjfs_fzzjdeleteBatch', params)
// 复审分组专家表-添加
const cxjfsFzzjadd = (params) => postAction('/cxj/cxjFsFzZj/cxjfs_fzzjadd', params)
// 复审分组项目表-添加
const cxjfsFzxmadd = (params) => postAction('/cxj/cxjFsFzXm/cxjfs_fzxmadd', params)
// 复审分组项目表-批量删除
const cxjfsFzxmdeleteBatch = (params) => deleteAction('/cxj/cxjFsFzXm/cxjfs_fzxmdeleteBatch', params)

// 复审分组专家表-获取分组列表
const cxjFsGetZjFz = (params) => getAction('/cxj/cxjFsFzZj/cxjFsGetZjFz', params)
// 复审分组专家表-技术类-查询二维码状态接口
const cxjfsCheckQrcode = (params, typePath) => getAction(`/cxj/${typePath}/cxjfs_submit_status`, params)
// 复审分组评分表-技术类-查询二维码
const cxjfsSubmitQrcode = (params, typePath) => postAction(`/cxj/${typePath}/cxjfs_getQR_code`, params)
// 复审项目评分表-技术类-获取分组项目
const cxjfsGetFzxmListByFzid = (params) => postAction('/cxj/cxjFsPfJs/cxjfs_getFzxmListByFzid', params)
// 复审项目评分表-技术类-评分保存或修改
const cxjfsSavePfBz = (params) => postAction('/cxj/cxjFsPfJs/cxjfs_savePf_bz', params)
// 技术复审评分表-评分统计-专家
const fsPfTjZj = (params) => postAction('/cxj/cxjFsPfJs/fsPfTjZj', params)
// 复审项目评分表-技术类-评分提交
const cxjfsSubmitPfBz = (params) => postAction('/cxj/cxjFsPfJs/cxjfs_submitPfBz', params)


// 复审项目评分表-职工类-获取分组项目
const cxjfsGetFzxmListByFzidZg = (params) => postAction('/cxj/cxjFsPfZg/cxjfs_getFzxmListByFzid', params)
// 复审项目评分表-职工类-评分保存或修改
const cxjfsSavePfBzZg = (params) => postAction('/cxj/cxjFsPfZg/cxjfs_savePf_bz', params)
// 技术复审评分表 - 职工类 - 评分统计 - 专家
const fsPfTjZjZg = (params) => postAction('/cxj/cxjFsPfZg/fsPfTjZj', params)
// 复审项目评分表-职工类-评分提交
const cxjfsSubmitPfBzZg = (params) => postAction('/cxj/cxjFsPfZg/cxjfs_submitPfBz', params)


// 复审项目评分表-管理类-获取分组项目
const cxjfsGetFzxmListByFzidGl = (params) => postAction('/cxj/cxjFsPfGl/cxjfs_getFzxmListByFzid', params)
// 复审项目评分表-管理类-评分保存或修改
const cxjfsSavePfBzGl = (params) => postAction('/cxj/cxjFsPfGl/cxjfs_savePf_bz', params)
// 管理复审评分表-评分统计-专家
const fsPfTjZjGl = (params) => postAction('/cxj/cxjFsPfGl/fsPfTjZj', params)
// 复审项目评分表-管理类-评分提交
const cxjfsSubmitPfBzGl = (params) => postAction('/cxj/cxjFsPfGl/cxjfs_submitPfBz', params)
// // 复审项目评分表-管理类-查询二维码状态接口
// const cxjfsGlCheckQrcode = (params) => getAction('/cxj/cxjFsPfGl/cxjfs_submit_status', params)
// // 复审项目评分表-管理类-查询二维码
// const cxjfsGlSubmitQrcode = (params) => postAction('/cxj/cxjFsPfGl/cxjfs_getQR_code', params)

// 复审项目评分表-信息化类-获取分组项目
const cxjfsGetFzxmListByFzidXxh = (params) => postAction('/cxj/cxjFsPfXxh/cxjfs_getFzxmListByFzid', params)
// 复审项目评分表-信息化类-评分保存或修改
const cxjfsSavePfBzXxh = (params) => postAction('/cxj/cxjFsPfXxh/cxjfs_savePf_bz', params)
// 信息化复审评分表-评分统计-专家
const fsPfTjZjXxh = (params) => postAction('/cxj/cxjFsPfXxh/fsPfTjZj', params)
// 复审项目评分表-信息化类-评分提交
const cxjfsSubmitPfBzXxh = (params) => postAction('/cxj/cxjFsPfXxh/cxjfs_submitPfBz', params)
// // 复审项目评分表-信息化类-查询二维码状态接口
// const cxjfsXxhCheckQrcode = (params) => getAction('/cxj/cxjFsPfXxh/cxjfs_submit_status', params)
// // 复审项目评分表-信息化类-查询二维码
// const cxjfsXxhSubmitQrcode = (params) => postAction('/cxj/cxjFsPfXxh/cxjfs_getQR_code', params)

// 复审项目评分表-专利类-获取分组项目
const cxjfsGetFzxmListByFzidZl = (params) => postAction('/cxj/cxjFsPfZl/cxjfs_getFzxmListByFzid', params)
// 复审项目评分表-专利类-评分保存或修改
const cxjfsSavePfBzZl = (params) => postAction('/cxj/cxjFsPfZl/cxjfs_savePf_bz', params)
// 专利复审评分表-评分统计-专家
const fsPfTjZjZl = (params) => postAction('/cxj/cxjFsPfZl/fsPfTjZj', params)
// 复审项目评分表-专利类-评分提交
const cxjfsSubmitPfBzZl = (params) => postAction('/cxj/cxjFsPfZl/cxjfs_submitPfBz', params)
// // 复审项目评分表-专利类-查询二维码状态接口
// const cxjfsZlGlCheckQrcode = (params) => getAction('/cxj/cxjJscsPfGl/cxjfs_submit_status', params)
// // 复审项目评分表-专利类-查询二维码
// const cxjfsZlSubmitQrcode = (params) => postAction('/cxj/cxjJscsPfGl/cxjfs_getQR_code', params)

// 复审项目评分表-标准类-获取分组项目
const cxjfsGetFzxmListByFzidBz = (params) => postAction('/cxj/cxjFsPfBz/cxjfs_getFzxmListByFzid', params)
// 复审项目评分表-标准类-评分保存或修改
const cxjfsSavePfBzBz = (params) => postAction('/cxj/cxjFsPfBz/cxjfs_savePf_bz', params)
// 标准复审评分表-评分统计-专家
const fsPfTjZjBz = (params) => postAction('/cxj/cxjFsPfBz/fsPfTjZj', params)
// 复审项目评分表-标准类-评分提交
const cxjfsSubmitPfBzBz = (params) => postAction('/cxj/cxjFsPfBz/cxjfs_submitPfBz', params)
// // 复审项目评分表-标准类-查询二维码状态接口
// const cxjfsBzCheckQrcode = (params) => getAction('/cxj/cxjFsPfBz/cxjfs_submit_status', params)
// // 复审项目评分表-标准类-查询二维码
// const cxjfsBzSubmitQrcode = (params) => postAction('/cxj/cxjFsPfBz/cxjfs_getQR_code', params)


// 复审项目评分表-技术-评分列表
const fsPfListJs = (params) => getAction('/cxj/cxjFsPfJs/fsPfList', params)
// 复审项目评分表-技术-编辑
const cxjFsPfJs = (params) => putAction('/cxj/cxjFsPfJs/edit', params)
// 复审项目评分表-职工-评分列表
const fsPfListZg = (params) => getAction('/cxj/cxjFsPfZg/fsPfList', params)
// 复审项目评分表-职工-编辑
const cxjFsPfZg = (params) => putAction('/cxj/cxjFsPfZg/edit', params)

// 复审项目评分表-专利-评分列表
const fsPfListZl = (params) => getAction('/cxj/cxjFsPfZl/fsPfList', params)
// 复审项目评分表-专利-编辑
const cxjFsPfZl = (params) => putAction('/cxj/cxjFsPfZl/edit', params)

// 复审项目评分表-标准-评分列表
const fsPfListBz = (params) => getAction('/cxj/cxjFsPfBz/fsPfList', params)
// 复审项目评分表-标准-编辑
const cxjFsPfBz = (params) => putAction('/cxj/cxjFsPfBz/edit', params)

// 复审项目评分表-管理-评分列表
const fsPfListGl = (params) => getAction('/cxj/cxjFsPfGl/fsPfList', params)
// 复审项目评分表-管理-编辑
const cxjFsPfGl = (params) => putAction('/cxj/cxjFsPfGl/edit', params)

// 复审项目评分表-信息化-评分列表
const fsPfListXxh = (params) => getAction('/cxj/cxjFsPfXxh/fsPfList', params)
// 复审项目评分表-信息化-编辑
const cxjFsPfXxh = (params) => putAction('/cxj/cxjFsPfXxh/edit', params)


// 复审分组项目表-答辩时间修改
const cxjfsDbsjEdit = (params) => putAction('/cxj/cxjFsFzXm/cxjfs_dbsjEdit', params)
// 复审分组项目表-答辩序号修改
const cxjfsDbxhEdit = (params) => putAction('/cxj/cxjFsFzXm/cxjfs_dbxhEdit', params)
// 复审分组项目表-主审专家修改
const cxjfsZszjEdit = (params) => putAction('/cxj/cxjFsFzXm/cxjfs_zszjEdit', params)


// 专家复审评分列表 - 技术类
const cxjfsFspfListZjJs = (params) => postAction('/cxj/cxjFsPfJs/cxjfs_fspfListZj', params)
// 专家复审评分列表 - 管理类
const cxjfsFspfListZjGl = (params) => postAction('/cxj/cxjFsPfGl/cxjfs_fspfListZj', params)
// 专家复审评分列表 - 标准类
const cxjfsFspfListZjBz = (params) => postAction('/cxj/cxjFsPfBz/cxjfs_fspfListZj', params)
// 专家复审评分列表 - 信息化类
const cxjfsFspfListZjXxh = (params) => postAction('/cxj/cxjFsPfXxh/cxjfs_fspfListZj', params)
// 专家复审评分列表 - 专利类
const cxjfsFspfListZjZl = (params) => postAction('/cxj/cxjFsPfZl/cxjfs_fspfListZj', params)
// 专家复审评分列表 - 职工类
const cxjfsFspfListZjZg = (params) => postAction('/cxj/cxjFsPfZl/cxjfs_fspfListZg', params)


// 专项评定专家表-批量删除
const cxjfszxpddeleteBatch = (params) => deleteAction('/cxj/cxjZxpdFzZj/cxjfs_fzzjdeleteBatch', params)
// 专项评定专家表-添加
const cxjzxpdzjadd = (params) => postAction('/cxj/cxjZxpdFzZj/cxjfs_fzzjadd', params)
const cxjzxpdTpxmListZj = (params) => postAction('/cxj/cxjZxpdTpZl/cxjzxpd_tpxmListZj', params)
// 专项评定-成果投票
const cxjzxpdSubmitTpJs = (params) => getAction('/cxj/cxjZxpdTpJs/cxjzxpd_submitTp', params)
const cxjzxpdSubmitStatusTpJs = (params, typePath) => getAction(`cxj/${typePath}/submit_status`, params) // 查询提交状态
const cxjzxpdIsShowSig = (params, typePath) => getAction(`cxj/${typePath}/isShowSig`, params) // 查询是否展示签名
const cxjzxpdGetQrcodeTpJs = (params, typePath) => postAction(`/cxj/${typePath}/zxpd_getQR_code`, params) // 查询二维码
const cxjzxpdSubmitQrcodeTpJs = (params, typePath) => postFormAction(`/cxj/${typePath}/submit_by_QR_code`, params, 'application/json; charset=UTF-8') // 提交二维码
const cxjzxpdScoreLookTpJs = (params, typePath) => postFormData(`/cxj/${typePath}/scoreExport`, params) // 评分预览

const cxjzxpdSubmitTpGl = (params) => getAction('/cxj/cxjZxpdTpGl/cxjzxpd_submitTp', params)
const cxjzxpdSubmitTpBz = (params) => getAction('/cxj/cxjZxpdTpBz/cxjzxpd_submitTp', params)
const cxjzxpdSubmitTpXxh = (params) => getAction('/cxj/cxjZxpdTpXxh/cxjzxpd_submitTp', params)
const cxjzxpdSubmitTpZl = (params) => getAction('/cxj/cxjZxpdTpZl/cxjzxpd_submitTp', params)
const cxjfsfzzjdeleteBatch = (params) => deleteAction('/cxj/cxjZxpdFzZz/cxjfs_fzzjdeleteBatch', params)
const cxjzxpdfzadd = (params) => postAction('/cxj/cxjZxpdFzZz/cxjfs_fzzjadd', params)




// 委员审定-添加专家
const cxjwysdFzzjadd = (params) => postAction('/cxj/cxjWysdFzZj/cxjwysd_fzzjadd', params)
// 委员审定-删除专家
const cxjwysdFzzjdeleteBatch = (params) => deleteAction('/cxj/cxjWysdFzZj/cxjwysd_fzzjdeleteBatch', params)
// 委员审定-添加专家-职工
const cxjwysdZgFzzjadd = (params) => postAction('/cxj/cxjWysdFzZjZgcg/cxjwysd_fzzjadd', params)
// 委员审定-删除专家-职工
const cxjwysdZgFzzjdeleteBatch = (params) => deleteAction('/cxj/cxjWysdFzZjZgcg/cxjwysd_fzzjdeleteBatch', params)
// 专家账号-委员审定-委员投票(科技)-提交
const cxjWysdTpKj = (params) => getAction('/cxj/cxjWysdTp/cxjwysd_submitTp', params)
// 专家账号-委员审定-委员投票(职工)-提交
const cxjWysdTpZgcg = (params) => getAction('/cxj/cxjWysdTpZgcg/cxjwysd_submitTp', params)
// 大奖分组
const cxjdjpsFzzjadd = (params) => postAction('/cxj/cxjDjpsFzZj/cxjdjps_fzzjadd', params)
const cxjfsDjpsxmadd = (params) => postAction('/cxj/cxjDjpsXm/add', params)
const cxjdjpsFzzjdeleteBatch = (params) => deleteAction('/cxj/cxjDjpsFzZj/cxjfs_fzzjdeleteBatch', params)
const cxjdjpsGetFzxmListByFzid = (params) => postAction('/cxj/cxjDjpsPf/cxjdjps_getFzxmListByFzid', params)
const cxjdjpsSavePf = (params) => postAction('/cxj/cxjDjpsPf/cxjdjps_savePf', params)
const cxjdjpsPfTjZj = (params) => postAction('/cxj/cxjDjpsPf/cxjdjps_pfTjZj', params)
const cxjdjpsSubmitPf = (params) => postAction('/cxj/cxjDjpsPf/cxjdjps_submitPf', params)
const cxjdjpsPfList = (params) => getAction('/cxj/cxjDjpsPf/cxjdjps_pfList', params)
const cxjdjpsPfListZj = (params) => postAction('/cxj/cxjDjpsPf/cxjdjps_pfListZj', params)
// 查询二维码
const cxjDjpsPfGetOrcode = (params) => postAction('cxj/cxjDjpsPf/zxpd_getQR_code', params)
// 成果批量推荐
const cxjCgCxjglCxjpltjAddTjdw = (params) => postAction('/cxj/cxjTjTjyj/cxjgl_cxjpltjAdd_tjdw', params)
// 形式审查添加说明
const cxjXscsAddSm = (params) => postAction('/cxj/sysCxjXswtmc/cxjxs_xswtmxList', params)
// 成果推荐管理 - 查看意见
const cxjCgCxjglCxjpltjAddTjyj = (params) => getAction('/cxj/cxjTjTjyj/cxjgl_cxjTjyj', params)
// 中转HTTP请求
export const transitRESTful = {
  get: (url, parameter) => getAction(getTransitURL(url), parameter),
  post: (url, parameter) => postAction(getTransitURL(url), parameter),
  put: (url, parameter) => putAction(getTransitURL(url), parameter),
  http: (url, parameter) => httpAction(getTransitURL(url), parameter),
}

export {
  addRole,
  editRole,
  checkRoleCode,
  addUser,
  editUser,
  queryUserRole,
  getUserList,
  queryall,
  frozenBatch,
  checkOnlyUser,
  changePassword,
  getPermissionList,
  addPermission,
  editPermission,
  queryTreeList,
  queryListAsync,
  queryRolePermission,
  saveRolePermission,
  queryPermissionsByUser,
  loadAllRoleIds,
  getPermissionRuleList,
  queryPermissionRule,
  queryDepartTreeList,
  queryIdTree,
  queryParentName,
  searchByKeywords,
  deleteByDepartId,
  deleteLog,
  deleteLogList,
  addDict,
  editDict,
  treeList,
  addDictItem,
  editDictItem,
  doReleaseData,
  doReovkeData,
  getLoginfo,
  getVisitInfo,
  queryUserByDepId,
  duplicateCheck,
  queryTreeListForRole,
  getSystemMenuList,
  getSystemSubmenu,
  getSystemSubmenuBatch,
  loadCategoryData,
  checkRuleByCode,
  queryDepartPermission,
  saveDepartPermission,
  queryTreeListForDeptRole,
  queryDeptRolePermission,
  saveDeptRolePermission,
  queryMyDepartTreeList,
  getUserNoticeInfo,
  getDictItemsFromCache,
  getChartDatatjdw,
  getChartDatagly,
  cxjtjAddTjdwxx,
  cxjtjGetTjdwxxBycgid,
  cxjtjGetTjdwxx,
  cxjsbTjdwlist,
  cxjsbSsjtlist,
  cxjsbTjdwlbList,
  cxjsbTjdwlbListAll,
  cxjTjbDownload,
  cxjTjbDownloadAll,
  cxjsbTjdwlistBylb,
  cxjTjbListGly,
  sysCxjFlCxjsbList,
  cxjsbLoadTreeRoot,
  cxjxsFzxmlistYx,
  cxjxsFzxmadd,
  cxjxsFzxmdelete,
  cxjxsFzxmdeleteBatch,
  cxjxsFzzjlistDx,
  cxjxsFzzjlistYx,
  cxjxsFzzjdeleteBatch,
  cxjxsFzzjdelete,
  cxjxsFzzjadd,
  cxjXsGetZjFz,
  queryByFlId,
  cxjXsGetXm,
  list_jlb,
  cxjglCxjTjbDownload,
  cxjcsFzxmdeleteBatch,
  cxjcsFzxmadd,
  cxjcsFzzjadd,
  cxjcsFzzjlistDx,
  cxjcsFzzjlistYx,
  cxjcsFzzjdeleteBatch,
  cxjcsGetFzxmListByFzid,
  cxjcsSavePfJs,
  cxjcsSubmitPfJs,
  jscsPfTjZj,
  cxjCsGetZjFz,
  cxjcsGetFzxmListByFzidGl,
  cxjcsSavePfGl,
  cxjcsSubmitPfGl,
  jscsPfTjZjGl,
  cxjcsGetFzxmListByFzidBz,
  cxjcsSavePfBz,
  cxjcsSubmitPfBz,
  jscsPfTjZjBz,
  cxjcsGetFzxmListByFzidXxh,
  cxjcsSavePfXxh,
  cxjcsSubmitPXxh,
  jscsPfTjZjXxh,
  cxjcsGetFzxmListByFzidZl,
  cxjcsSavePfZl,
  cxjcsSubmitPZl,
  jscsPfTjZjZl,
  jscsPfListJs,
  cxjJscsPfJsEdit,
  jscsPfListZg,
  cxjJscsPfZgEdit,
  jscsPfListGl,
  cxjJscsPfGlEdit,
  jscsPfListBz,
  cxjJscsPfBzEdit,
  jscsPfListXxh,
  cxjJscsPfXxhEdit,
  jscsPfListZl,
  cxjJscsPfZlEdit,
  cxjfsFzzjdeleteBatch,
  cxjfsFzzjadd,
  cxjfsFzxmadd,
  cxjfsFzxmdeleteBatch,
  cxjFsGetZjFz,
  cxjfsGetFzxmListByFzid,
  cxjfsSavePfBz,
  fsPfTjZj,
  cxjfsSubmitPfBz,
  cxjfsGetFzxmListByFzidGl,
  cxjfsSavePfBzGl,
  fsPfTjZjGl,
  cxjfsSubmitPfBzGl,
  cxjfsGetFzxmListByFzidXxh,
  cxjfsSavePfBzXxh,
  fsPfTjZjXxh,
  cxjfsSubmitPfBzXxh,
  cxjfsGetFzxmListByFzidZl,
  cxjfsSavePfBzZl,
  fsPfTjZjZl,
  cxjfsSubmitPfBzZl,
  cxjfsGetFzxmListByFzidBz,
  cxjfsSavePfBzBz,
  fsPfTjZjBz,
  cxjfsSubmitPfBzBz,
  fsPfListJs,
  cxjFsPfJs,
  fsPfListZg,
  cxjFsPfZg,
  fsPfListZl,
  cxjFsPfZl,
  fsPfListBz,
  cxjFsPfBz,
  fsPfListGl,
  cxjFsPfGl,
  fsPfListXxh,
  cxjFsPfXxh,
  cxjfsDbsjEdit,
  cxjfsDbxhEdit,
  cxjfsZszjEdit,
  cxjfsFspfListZjJs,
  cxjfsFspfListZjGl,
  cxjfsFspfListZjBz,
  cxjfsFspfListZjXxh,
  cxjfsFspfListZjZl,
  cxjfszxpddeleteBatch,
  cxjzxpdzjadd,
  cxjzxpdTpxmListZj,
  cxjzxpdSubmitTpJs,
  cxjzxpdSubmitTpGl,
  cxjzxpdSubmitTpBz,
  cxjzxpdSubmitTpXxh,
  cxjzxpdSubmitTpZl,
  cxjfsfzzjdeleteBatch,
  cxjzxpdfzadd,
  cxjwysdFzzjadd,
  cxjwysdFzzjdeleteBatch,
  cxjwysdZgFzzjadd,
  cxjwysdZgFzzjdeleteBatch,
  cxjWysdTpKj,
  cxjWysdTpZgcg,
  // cxjzxpdfzadd,
  cxjdjpsFzzjadd,
  cxjfsDjpsxmadd,
  cxjdjpsFzzjdeleteBatch,
  cxjdjpsGetFzxmListByFzid,
  cxjdjpsSavePf,
  cxjdjpsSubmitPf,
  cxjdjpsPfTjZj,
  cxjdjpsPfList,
  cxjdjpsPfListZj,
  cxjcsCheckQrcode,
  cxjcsSubmitQrcode,
  cxjcsPostQrcode,
  cxjcsScoreExport,
  cxjcGlCheckQrcode,
  cxjcGlSubmitQrcode,
  // cxjcGlPostQrcode,
  cxjcBzCheckQrcode,
  cxjcBzSubmitQrcode,
  // cxjcBzPostQrcode,
  cxjcXxhCheckQrcode,
  cxjcXxhSubmitQrcode,
  // cxjcXxhPostQrcode,
  cxjcZlCheckQrcode,
  cxjcZlSubmitQrcode,
  // cxjcZlPostQrcode,
  cxjfsCheckQrcode,
  cxjfsSubmitQrcode,
  cxjzxpdSubmitStatusTpJs,
  cxjzxpdIsShowSig,
  cxjzxpdGetQrcodeTpJs,
  cxjzxpdSubmitQrcodeTpJs,
  cxjzxpdScoreLookTpJs,
  cxjDjpsPfGetOrcode,
  cxjCgCxjglCxjpltjAddTjdw,
  cxjXscsAddSm,
  cxjCgCxjglCxjpltjAddTjyj,
  cxjcsGetFzxmListByFzidZg,
  cxjcsSavePfZg,
  cxjcsCheckQrcodeZg,
  cxjcsSubmitQrcodeZg,
  cxjcsSubmitPfZg,
  zgcsPfTjZj,
  cxjfsGetFzxmListByFzidZg,
  cxjfsSavePfBzZg,
  fsPfTjZjZg,
  cxjfsSubmitPfBzZg,
  cxjfsFspfListZjZg
}